package 模拟读写数据;

/**
 * @ClassName: TestReadSaveData
 * @Auther: Drawin
 * @Date: 2021/10/18 17:27
 * @Description:
 */

public class TestReadSaveData {
    public static void main(String[] args) {
        //A需要往文本文件保存数据
        BusinessA businessA=new BusinessA( new ReadSaveTextFile());
        businessA.savaData("保存到文本文件中");
        BusinessB businessB=new BusinessB(new ReadSaveWordFile());
        businessB.savaData("保存到word文件中");
    }
}
